runtime.mheap.sweepPagesPerByte (field)
9 uses
runtime (current package)
mgc.go#L1475: mheap_.sweepPagesPerByte = 0
mgcsweep.go#L180: print("pacer: sweep done at heap size ", gcController.heapLive>>20, "MB; allocated ", (gcController.heapLive-mheap_.sweepHeapLiveBasis)>>20, "MB during sweep; swept ", mheap_.pagesSwept.Load(), " pages at ", mheap_.sweepPagesPerByte, " pages/byte\n")
mgcsweep.go#L797: if mheap_.sweepPagesPerByte == 0 {
mgcsweep.go#L811: pagesTarget := int64(mheap_.sweepPagesPerByte*float64(newHeapLive)) - int64(callerSweepPages)
mgcsweep.go#L814: mheap_.sweepPagesPerByte = 0
mgcsweep.go#L847: mheap_.sweepPagesPerByte = 0
mgcsweep.go#L868: mheap_.sweepPagesPerByte = 0
mgcsweep.go#L870: mheap_.sweepPagesPerByte = float64(sweepDistancePages) / float64(heapDistance)
mheap.go#L107: sweepPagesPerByte float64 // proportional sweep ratio; written with lock, read without